{volist name="list.list" id="vo"}
    <tr>
        <td>{$vo.id}</td>
        <td>{$vo.account}</td>
        <td>{$vo.nickname}</td>
        <td>{$vo.sex}</td>
        <td>{$vo.roleName}</td>
        <td>{$vo.mobilephone}</td>
        <td>{$vo.weixin}</td>
        <td>{$vo.last_login_time}</td>
        <td>{$vo.account_status}</td>
        <td>
            <a class="layui-btn layui-btn-xs edit"  lay-id="{$vo.id}"  lay-event="edit">编辑</a>
            <a class="layui-btn layui-btn-xs edit"  lay-id="{$vo.id}"  lay-event="edit">禁用/启用</a>
        </td>
    </tr>
{/volist}
<script>
    layui.use(['form','layer','laydate','table','laytpl','element'],function(){
        var form = layui.form,
            layer = parent.layer === undefined ? layui.layer : top.layer,
            $ = layui.jquery,
            laypage = layui.laypage;
        var info = $('#info').val();
        $(".edit").on("click",function(){
            var menu_id=$(this).attr("lay-id");
            layer.open({
                type: 2,
                title: '操作',
                shadeClose: true,
                shade: 0.8,
                area: ['700px','700px'],
                content: info+'/menu_id/'+menu_id //iframe的url
            });
        });
    })
</script>

